package com.mbengue.corp.artisan.vue.menu;

import java.awt.event.KeyEvent;

import javax.swing.JMenu;
import javax.swing.JMenuItem;

public class Visualiser extends JMenu {
  private static final long serialVersionUID = 1638984245169036013L;
  private final JMenuItem facture;
  private final JMenuItem devis;
  private final JMenuItem article;
  private final JMenuItem client;

  public Visualiser() {
    super("Visualiser");
    this.setMnemonic(KeyEvent.VK_V);
    this.facture = new JMenuItem("Facture");
    this.devis = new JMenuItem("Devis");
    this.article = new JMenuItem("Article");
    this.client = new JMenuItem("Client");

    this.buildVisualiser();
    this.setVisible(true);
  }

  private void buildVisualiser() {
    this.add(this.facture);
    this.add(this.devis);
    this.add(this.article);
    this.add(this.client);
  }

  public JMenuItem getFacture() {
    return facture;
  }

  public JMenuItem getDevis() {
    return devis;
  }

  public JMenuItem getArticle() {
    return article;
  }

  public JMenuItem getClient() {
    return client;
  }
}
